home *** CD-ROM | disk | FTP | other *** search
- /* Copyright, 1990, Regents of the University of Colorado */
- #include <sys/types.h>
- #include <sys/timeb.h>
- #include <stdio.h>
-
- static double T_holder;
-
- tinit()
- {
- struct timeb it;
-
- ftime(&it);
- T_holder = it.time + (double)it.millitm / 1000;
- }
-
- tick(A)
- char *A;
- {
- struct timeb it;
-
- ftime(&it);
- (void)printf("\t%s running time is now %.2f\n", A,
- (it.time + (double)it.millitm / 1000) - T_holder);
- }
-
-
-
-